home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_nub_commiegenmove.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  59 lines

  1. # Jones 3D Cog Script
  2. #
  3. # nub_CommieGenMove.cog
  4. #
  5. # [RD] [TL] [GGJ]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. #
  9. # ========================================================================================
  10. symbols
  11.  
  12. message        entered
  13. message        arrived
  14. message        user0
  15.  
  16. thing        generator_pos0
  17. thing        generator_pos1
  18. thing        generator_pos2
  19.  
  20. template    enemy0_tpl
  21. template    enemy1_tpl
  22. template    officer_tpl
  23.  
  24. int            done0=0                local
  25.  
  26. int            enemy0                local
  27. int            enemy1                local
  28. int            officer0            local
  29.  
  30. cog             NUB_Commie_Gen_ManagerX     #added by JM
  31.  
  32. end
  33.  
  34. # ========================================================================================
  35. code
  36.  
  37. user0:
  38.  
  39. if (done0 == 1) return;
  40. if (done0 == 0)
  41. {
  42. Print("trying to wake up commies");
  43. enemy0 = CreateThing(enemy0_tpl, generator_pos0);
  44. CaptureThing(enemy0);
  45. enemy1 = CreateThing(enemy1_tpl, generator_pos1);
  46. CaptureThing(enemy1);
  47. officer0 = CreateThing(officer_tpl, generator_pos2);
  48. CaptureThing(officer0);
  49. done0 = 1;
  50. }
  51.  
  52. SendMessageEx(NUB_Commie_Gen_ManagerX, User0, officer0, enemy0, enemy1, 0);      //Added by JM
  53.  
  54. return;
  55.  
  56. #........................................................................................
  57. end
  58.  
  59.